-
Notifications
You must be signed in to change notification settings - Fork 24
Conversation
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #771 +/- ##
=======================================
Coverage 89.95% 89.95%
=======================================
Files 82 82
Lines 14708 14708
=======================================
Hits 13231 13231
Misses 1477 1477
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Kudos, SonarCloud Quality Gate passed! |
If api33 weren't comptaible with java 17 bytecode how could #757 pass CI checks? |
I'm not 100% sure how it worked. My assumption is that it's because the test app is also configured to compile with JDK 17. But importing it into Element Android (compileSdk 33 / JDK 11) reveals a problem:
When I checked Java versions in Android builds docs, I saw the following compatibility table:
|
Oh I see, I think api33 works fine with java 17 bytecode, the problem is that EA is still built with v11 bytecode (so it can't use libraries built with v17). If we wish to keep compatibility with EA too then we have no choice but to lower ours bytecode version too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please first check if it works by keeping: jvmToolchain(17)
and only changing :
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
If it doesn't then lower the jvmToolchain too. Thanks!
Ok, I tried this but the build fails with an error:
If I remove |
Thanks for checking! We'll have to keep everything at 11 then as long as we want to maintain compatibility with legacy element. |
Merging with test failures as these are unrelated and fixed in #772 |
Problem
Updating Gradle and AGP to version 8 (#757), it was necessary to update the JDK used to run Gradle to 17. However, during this update, the toolchain JDK used to compile the source code was also updated to 17 which is not compatible with Android SDK API 33.
Solution
Revert to Java toolchain JDK to version 11.